<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>mvprintw</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_002_001_587">&nbsp;</a>NAME</h4><blockquote>
mvprintw, mvwprintw, printw, wprintw - print formatted output in window
</blockquote><h4><a name = "tag_002_001_588">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

int mvprintw(int <i>y</i>, int <i>x</i>, char *<i>fmt</i>, ...);

int mvwprintw(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, char *<i>fmt</i>, ...);

int printw(char *<i>fmt</i>, ...);

int wprintw(WINDOW *<i>win</i>, char *<i>fmt</i>, ...);
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_589">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>mvprintw()</i>,
<i>mvwprintw()</i>,
<i><a href="printw.html">printw()</a></i>
and
<i>wprintw()</i>
functions are analogous to
<i><a href="../xsh/printf.html">printf()</a></i>.
The effect of these functions is as though
<i><a href="../xsh/sprintf.html">sprintf()</a></i>
were used to format the string, and then
<i><a href="waddstr.html">waddstr()</a></i>
were used to add that multi-byte string to the current or specified window at
the current or specified cursor position.
</blockquote><h4><a name = "tag_002_001_590">&nbsp;</a>RETURN VALUE</h4><blockquote>
Upon successful completion, these functions return OK.
Otherwise, they return ERR.
</blockquote><h4><a name = "tag_002_001_591">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_592">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="addnstr.html">addnstr()</a></i>,
<i><a href="../xsh/fprintf.html">fprintf()</a></i>
(in the <b>XSH</b> specification),
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
